package com.qzxy.premiumhotelsystem.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName comments
 */
@TableName(value ="comments")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Comments implements Serializable {

    @TableId
    private Integer commentId;

//    @NotNull(message = "顾客id不为空")
    private Integer guestId;

    @NotNull(message = "房间id不为空")
    private Integer roomId;

    private Integer parentId = 0;

    @NotBlank(message = "评论内容不为空")
    private String comment;

    private Date createTime;

    private static final long serialVersionUID = 1L;


}